﻿<%@ Page Title="" Language="C#" MasterPageFile="~/front.Master" AutoEventWireup="true"
    CodeBehind="ListaAnuncio.aspx.cs" Inherits="Imobitech.Anuncio.ListaAnuncio" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <h2>
        <asp:Label ID="lblTitulo" runat="server"></asp:Label></h2>
    <asp:Repeater ID="rptAnunciosVenda" runat="server">
        <HeaderTemplate>
        </HeaderTemplate>
        <ItemTemplate>
            <%#((((RepeaterItem)Container).ItemIndex) % 2) == 0 ? "<div class='row'>" : ""%>
            <div class='span6'>
                <img src='../Imovel/upload/<%# DataBinder.Eval(Container.DataItem, "idImovel")%>/<%# DataBinder.Eval(Container.DataItem, "caminho")%>'  width="72" height="72"  />
                <p>
                    <%# DataBinder.Eval(Container.DataItem, "descricao")%></p>
                <p>
                    <a class="btn" href='<%# DataBinder.Eval(Container.DataItem, "url") %>' runat="server">View details &raquo;</a></p>
            </div>
            <%#((((RepeaterItem)Container).ItemIndex) % 2) == 0 ? "" : "</div>"%>
        </ItemTemplate>
        <FooterTemplate>
            </div>
        </FooterTemplate>
    </asp:Repeater>
    <div class="pagination">
        <ul id="ulpagination" runat="server">
        </ul>
    </div>
</asp:Content>
